Step-by-step Android Wear Application Development

Step-by-step Android Wear Application Development

Author:Ho, Alex [Ho, Alex]
Language: eng
Format: mobi
Published: 2015-05-26T16:00:00+00:00


You also implemented the Animatable interface to provide your class with two basic methods to support animation: start() and stop().

You created a constructor with three parameters. The first parameter, currentValue sets the initial start time and the second parameter, maxValue sets the target time. The last parameter, order, is used to set the direction toward which the progress timer fills. For example, setting a currentValue of 20, a maxValue of 30 and a DESCENDING order will draw a circular timer with 30 increments and will start a countdown from 20 to zero:

public CircularProgressDrawable(int currentValue, int maxValue, Order order) {

super();

mValue = currentValue;

mMaxValue = maxValue;

mOrder = order;

mPaint = new Paint();

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.